﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace BSPortal.Usercontrol.Admin.Book.ListBook
{
    public partial class frmComfirmDelete : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        protected void btnOk_Click(object sender, EventArgs e)
        {
            string id = Request["ProductId"];
            if (id == null)
            {
                return;
            }
            MainService service = new MainService();
            int retcode = service.DeleteProduct(short.Parse(id));
            if (retcode == (int)Common.RetCode.SUCESS)
            {
                lblStatus.Text = "Xóa tin thành công!";
                hdModified.Value = "true";
            }
            else
                lblStatus.Text = "Xóa tin không thành công!";
        }
    }
}
